'''
Created on 2011-12-7

@author: kom
'''
import os,logging
import web
from web.contrib.template import render_jinja
from lib.topClient import *
from lib.dealItem import *
from apps.items import *
from url import urls
import view
import sys
import json
#reload(sys)
#sys.setdefaultencoding('utf8')

web.config.apiurl = 'http://gw.api.tbsandbox.com/router/rest'
web.config.appkey = '12443826'
web.config.secretKey = 'sandboxec3eed15f5f56fe3a35441592'
web.config.gatewayUrl = 'http://gw.api.tbsandbox.com/router/rest'
web.config.format = "json"


render = render_jinja(
    'templates',   # Set template directory.
    encoding = 'utf-8',                         # Encoding.
)